package com.day0424;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 * 作者：wangmaokang
 * 日期: 2020/10/16 15:35
 * 描述:
 */
public class Book {
    public double price;
    public String name="常灏";
    private String auchor;

    public Book() {
    }

    public Book(double price, String name, String auchor) {
        this.price = price;
        this.name = name;
        this.auchor = auchor;
    }

@Override
    public String toString() {
        return "Book{" +
                "price=" + price +
                ", name='" + name + '\'' +
                ", auchor='" + auchor + '\'' +
                '}';
    }
     @Test
     @Before
     @After
    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    private String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuchor() {
        return auchor;
    }

    public void setAuchor(String auchor) {
        this.auchor = auchor;
    }
}
